﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HamcoWcs.Models.ForeEndModels.DeviceMsgQueues
{
    public class DeviceEventModel
    {
        public string MachineName { get; set; }

        public int Days { get; set; } = 1;
    }

    public class ResetMileageModel
    {
        public string MotorName { get; set; }
    }

    public class SetBcrBypassModel
    {
        public string BcrName { get; set; }
        public bool BypassState { get; set; }
    }

    public class SetTransportThresholdTimeModel
    {
        public string FieldName { get; set; }
        public short Time { get; set; }
        public string Remark { get; set; }
    }

    public class GetShelfTeachInfoModel
    {
        public string ShelfName { get; set; }
    }

    //public class ResetRgvTeachingValueModel
    //{
    //    public string BcrName { get; set; }
    //    public bool BypassState { get; set; }
    //}

    public class UIDeviceEventInfo
    {
        public UIDeviceEventInfo()
        {

        }

        public UIDeviceEventInfo(string content, DateTime setTime, string color)
        {
            Content = content;
            Timestamp = setTime.ToString("yyyy-MM-dd HH:mm:ss");
            Color = color;
        }

        public string Content { get; set; }
        public string Timestamp { get; set; }
        public string Color { get; set; }
    }

    public class HistoryMileageQueryModel
    {
        public string Q { get; set; }
    }
}
